package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.pojo.MarketRegion;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 商场管理-行政区域
 * 创建日期: 2022/04/07 17:32
 *
 * @author HanWeiqi
 */
@NoArgsConstructor
@Data
public class RegionListVO {

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<RegionProvinceListVO> list;

    public static RegionListVO data(long total,Integer pages,Integer limit,Integer page,List list) {
        RegionListVO regionListVO = new RegionListVO();
        regionListVO.setTotal((int) total);
        regionListVO.setPages(pages);
        regionListVO.setPage(page);
        regionListVO.setLimit(limit);
        regionListVO.setList(list);
        return regionListVO;
    }
}
